<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>Publisher Page</title>
		<!--  load the opensocial files here -->
		<script type="text/javascript" src="http://googlegadgetopensocial.googlecode.com/svn/trunk/opensocial/features/core/config.js"></script>
		<script type="text/javascript" src="http://googlegadgetopensocial.googlecode.com/svn/trunk/opensocial/features/core/json.js"></script>
		<script type="text/javascript" src="http://googlegadgetopensocial.googlecode.com/svn/trunk/opensocial/features/core/util.js"></script>
		<script type="text/javascript" src="http://googlegadgetopensocial.googlecode.com/svn/trunk/opensocial/features/core.io/io.js"></script>
		<script type="text/javascript" src="http://googlegadgetopensocial.googlecode.com/svn/trunk/opensocial/features/pubsub/pubsub-router.js"></script>
		<script type="text/javascript" src="http://googlegadgetopensocial.googlecode.com/svn/trunk/opensocial/features/pubsub/pubsub.js"></script>
		<script type="text/javascript" src="http://googlegadgetopensocial.googlecode.com/svn/trunk/opensocial/features/rpc/rpc.js"></script>
		<!-- Trigger Functions -->
		<script type="text/javascript">
			<!-- Send Message -->
			function onPublish() {
				<!-- Message Value -->
				var val = document.getElementById("inputMessage").value;
				gadgets.pubsub.publish("myChan", val);
			}
		</script>
	</head>
	<body>
		<p>Publish Message Here</p>
		<input type="text" id="inputMessage" />
		<input type="button" id ="sendMsgBtn" onclick="onPublish()" value="Publish Message" />
	</body>
</html>
